package rabbitmq.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * sms的消费者
 */
@Slf4j
@Component
public class SmsConsumer {

    @RabbitListener(queues = "sms_direct_queue")
    public void smsConsumer(String sms) {
        log.info(">>sms消费者MSG:{}", sms);
    }
}
